# coding:utf-8

class Person(object):
    def __init__(self, name, sex):
        self.name = name
        self.sex = sex

    def talk(self):
        return f'{self.name} are talking'

    def is_sex(self):
        if self.sex == 'boy':
            return f'{self.name} is a boy'
        else:
            return f'{self.name} is a girl'


class ChildOne(Person):

    def __init__(self, name, sex):
        super().__init__(name, sex)

    def play_football(self):
        return f'{self.name} are playing football.'


class ChildTwo(Person):
    def play_pingpong(self):
        return f'{self.name} are playing pingpong.'


c_one = ChildOne('child_one', 'boy')
result = c_one.play_football()
print(result)
result = c_one.talk()
print(result)

c_two = ChildTwo('child_two', 'girl')
result = c_two.play_pingpong()
print(result)
result = c_two.talk()
print(result)

p = Person(name='小慕爸爸', sex='boy')
print(p.talk())
